﻿using GiaoTrinhEPU.Repositories.DataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GiaoTrinhEPU.Repositories.Interfaces
{
    public interface ISyllabusRepository
    {
        void CreateSyllabus(Syllabus item);
        void UpdateSyllabus(Syllabus item);
        void DeleteSyllabus(int id);

        IEnumerable<SyllabusModel> ListSyllabus(bool cacheEnabled = true);
        Syllabus GetSyllabusById(int id);

        bool HasNameExisted(String name);
        bool HasNameDuplicated(int id, String name);
    }
}
